| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253 |
- <template>
- <div>
- <HomePageHead></HomePageHead>
- <HomePageNavigation></HomePageNavigation>
- <HomeAdvertising :imgurl="adImg1" v-if="adImg1"></HomeAdvertising>
- <!-- 面包屑导航 -->
- <div class="breadcrumb phone_none">
- <div class="inner">
- <span class="location">当前位置:</span>
- <el-breadcrumb :separator-icon="ArrowRight">
- <el-breadcrumb-item>
- <NuxtLink to="/">首页</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>简历详情</el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
-
- <div class="breadcrumb_box pc_none">
- <span class=" ">当前位置:</span>
- <NuxtLink to="/">首页</NuxtLink>
- <span class=" ">></span>
- <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
- <span class=" ">></span>
- <span class=" ">简历详情</span>
- </div>
- <!-- 简历 -->
- <main class="gerenjianli" v-if="type == 2">
- <!-- 个人简历 -->
- <section class="index_1 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">个人简历</a>
- </div>
- <div class="seek_head_right_box clearfix">
- <span class="seek_head_right_text">更新时间:{{ jobInfo.created_at }}</span>
- </div>
- </div>
- <div class="phone_box_1 pc_none">
- <div class="phone_box_1_head">
- <a title="">个人简历</a>
- <span class="phone_box_1_head_time">更新时间:{{ jobInfo.created_at }}</span>
- </div>
- </div>
- <div class="index_1_left clearfix">
- <div class="seek_introduce_box clearfix">
- <div class="seek_introduce_left clearfix">
- <div class="seek_introduce_head clearfix">
- <h4 class="seek_introduce_h4">{{ jobInfo.name }}</h4>
- <div class="seek_introduce_tag clearfix" v-if="resume">此简历已被推荐</div>
- <div class="seek_introduce_text clearfix phone_none" v-if="resume">
- (已有单位把本简历加入人才库)
- </div>
- </div>
- <div class="seek_introduce_title_box clearfix">
- <span class="seek_introduce_label">期望岗位:</span>
- <span class="seek_introduce_title">{{ jobInfo.jtzw_name }}</span>
- <div class="phone_introduce_title_hr pc_none"></div>
- <span class="seek_introduce_label">薪资待遇:</span>
- <span class="seek_introduce_title">{{ jobInfo.salary_name }}</span>
- </div>
- </div>
- </div>
- <div class="seek_introduce_foot clearfix phone_none">
- <span class="seek_introduce_foot_text" v-if="jobInfo.sexy">
- {{ jobInfo.sexy == 1 ? '男' : '女' }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.birth">
- {{ getTime(jobInfo.birth, 'year', 0) }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.origin">
- 籍贯:{{ jobInfo.origin }}
- </span>
- <!-- <span class="seek_introduce_foot_text">汉族</span> -->
- <span class="seek_introduce_foot_text" v-if="jobInfo.education_name">
- {{ jobInfo.education_name }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.experience_name">
- {{ jobInfo.experience_name }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.hunt_cityname">
- 工作地点:{{ jobInfo.hunt_cityname }}
- </span>
- <span class="seek_introduce_foot_text" v-if="jobInfo.language_name">
- {{ jobInfo.language_name }}
- </span>
- </div>
- </div>
- <div class="index_1_right clearfix">
- <img class="index_1_right_img" src="@/public/image/touxiang.png" title="" alt=""
- v-if="!jobInfo.imgurl">
- <img class="index_1_right_img" :src="jobInfo.imgurl" title="" alt="" v-if="jobInfo.imgurl">
- </div>
-
- <div class="seek_introduce_foot clearfix pc_none">
-
- <template v-if="jobInfo.sexy">{{ jobInfo.sexy == 1 ? '男' : '女' }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.birth">{{ jobInfo.birth }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.origin">籍贯:{{ jobInfo.origin }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.education_name">{{ jobInfo.education_name }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.experience_name">工作地点:{{ jobInfo.experience_name }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.hunt_cityname">{{ jobInfo.hunt_cityname }}<span class="seek_introduce_foot_text" ></span> </template>
- <template v-if="jobInfo.language_name">{{ jobInfo.language_name }}<span class="seek_introduce_foot_text" ></span> </template>
- </div>
- </section>
- <!-- 个人简历 -->
- <div class="contact_me" v-if="type_id == 3">
- <div class="contact_me_btn" @click="getContactMe">
- <span class="contact_me_btn_img"></span>
- 沟通简历
- </div>
- </div>
- <div class="contact_me" v-else>
- <div class="contact_me_btn contact_me_btn_2">
- <span class="contact_me_btn_img"></span>
- 沟通简历
- </div>
- </div>
- </main>
- <main class="jianli" v-if="type == 2">
- <!-- 自我介绍 -->
- <section class="index_2 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">自我介绍</a>
- </div>
- </div>
- <div class="phone_box_2 pc_none">
- <div class="phone_box_1_head">
- <a title="">自我介绍</a>
- </div>
- </div>
- <article class="seek_article">
- {{ jobInfo.self_evaluation }}
- </article>
- </section>
- <!-- 自我介绍 -->
- <!-- 工作经历 -->
- <section class="index_3 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">工作经历</a>
- </div>
- </div>
- <div class="phone_box_3 pc_none">
- <div class="phone_box_1_head">
- <a title="">工作经历</a>
- </div>
- </div>
- <div class="seek_in clearfix" v-for="(item, index) in experienceInfo" :key="index">
- <div class="seek_in_head clearfix">
-
- <span class="seek_in_head_text "> {{ item.company_name }}</span>
- <span class="seek_in_head_text pc_none" style="float: right;" v-if="item.job_timeList">
- {{ getTime(item.job_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.job_timeList[1], 'year', 0) }}
- </span>
- <span class="seek_in_head_text">
- 职位类别:
-
- <span class="phone_name_1 pc_none">
- {{ item.zw_name }}
- </span>
- <span class="phone_none">
- {{ item.zw_name }}
- </span>
- </span>
- <span class="seek_in_head_text">
- 具体职位:
-
- <span class="phone_name_1 pc_none">
- {{ item.jtzw_name }}
- </span>
- <span class="phone_none">
- {{ item.jtzw_name }}
- </span>
-
- </span>
- <span class="seek_in_head_text phone_none" style="float: right;" v-if="item.job_timeList">
- {{ getTime(item.job_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.job_timeList[1], 'year', 0) }}
- </span>
- </div>
- <div class="seek_in_ul clearfix">
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">工作内容:</label>
- <div class="seek_in_li_text">{{ item.job_content }}</div>
- </div>
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">工作业绩:</label>
- <div class="seek_in_li_text">{{ item.performance }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 工作经历 -->
- <!-- 教育背景 -->
- <section class="index_4 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">教育背景</a>
- </div>
- </div>
- <div class="phone_box_4 pc_none">
- <div class="phone_box_1_head">
- <a title="">教育背景</a>
- </div>
- </div>
- <div class="seek_in clearfix" v-for="(item, index) in education" :key="index">
- <div class="seek_in_head phone_seek_in_head clearfix">
-
- <span class="seek_in_head_text"
- v-if="item.school_name || item.education_name || item.school_major || item.school_timeList">
- {{ item.school_name }}
- </span>
-
- <span class="seek_in_head_text pc_none" style="float: right;" v-if="item.school_timeList">
- {{ getTime(item.school_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.school_timeList[1], 'year', 0) }}
- </span>
- <span class="seek_in_head_text">
- {{ item.education_name }}
- </span>
- <span class="seek_in_head_text">{{ item.school_major }}</span>
- <span class="seek_in_head_text phone_none" style="float: right;" v-if="item.school_timeList">
- {{ getTime(item.school_timeList[0], 'year', 0) }}
- -
- {{ getTime(item.school_timeList[1], 'year', 0) }}
- </span>
- </div>
- <div class="seek_in_ul clearfix" v-if="item.school_experience">
- <div class="seek_in_li clearfix">
- <label class="seek_in_label">在校经历:</label>
- <div class="seek_in_li_text">{{ item.school_experience }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 教育背景 -->
- <!-- 专业技能 -->
- <section class="index_5 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">专业技能</a>
- </div>
- </div>
- <div class="phone_box_5 pc_none">
- <div class="phone_box_1_head">
- <a title="">专业技能</a>
- </div>
- </div>
- <div class="seek_in clearfix">
- <div class="seek_in_ul clearfix">
- <div class="seek_in_li clearfix" v-for="(item, index) in skillList">
- <!-- <label class="seek_in_label" v-if="item.skill">{{ index + 1 }}.</label> -->
- <div class="seek_in_li_text">{{ item.skill }}</div>
- </div>
- </div>
- </div>
- </section>
- <!-- 专业技能 -->
- <!-- 联系方式 -->
- <section class="index_6 clearfix">
- <div class="seek_head_box clearfix phone_none">
- <div class="seek_head_left">
- <a class="seek_head_a seek_head_only" title="">联系方式</a>
- </div>
- </div>
-
- <div class="phone_box_6 pc_none pc_none">
- <div class="phone_box_1_head">
- <a title="">自我介绍</a>
- </div>
- </div>
- <div class="seek_in clearfix" v-if="type_id == 10000 || type_id == 3">
- <article class="seek_article_2">
- {{ jobInfo.phone }}
- </article>
- </div>
- <div class="seek_in clearfix" v-else>
- <article class="seek_article_2">
- 登录后可查看
- </article>
- </div>
- </section>
- <!-- 联系方式 -->
- <!-- 弹框 -->
- <section class="cruit_alert_rgb clearfix" v-if="resumeBool">
- <!-- 请选择要投递的简历1 -->
- <div class="cruit_alert_rgb_box">
- <div class="cruit_alert_rgb_head_box">
- <div class="cruit_alert_rgb_close hand back100"></div>
- <div class="cruit_alert_rgb_head">请选择要沟通的岗位
- <span class="close" @click="resumeBool = false">x</span>
- </div>
- </div>
- <form class="cruit_alert_rgb_form clearfix" action=" " method=" ">
- <div class="cruit_alert_rgb_form_in clearfix">
- <div class="cruit_alert_rgb_li clearfix" v-for="(item, index) in companyJobList"
- :key="item.id">
- <el-radio :value="item.id" v-model="company_job" @change="jobChange">
- <div class="cruit_alert_rgb_label dot1">
- {{ item.title }}
- </div>
- </el-radio>
- </div>
- </div>
- <div class="cruit_alert_rgb_foot clearfix">
- <div class="cruit_alert_rgb_foot_sub hand" @click="getresume">沟通岗位</div>
- </div>
- </form>
- </div>
- <!-- 请选择要投递的简历2 -->
- </section>
- </main>
- <!-- 岗位 -->
- <!-- <div class="gangwei" v-if="type == 1">
- <main class="color_main">
- <main class="index_main">
- <section class="index_1 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">基本信息</a>
- </div>
- </div>
- <div class="index_1_box clearfix">
- <div class="demand_head_box clearfix">
- <div class="demand_head_name">{{ jobInfo.title }}</div>
- <div class="demand_head_btn hand" v-if="type_id == 1" @click="applyJob">申请该职位</div>
- <div class="demand_head_btn1" v-if="type_id != 1">申请该职位</div>
- </div>
- <div class="cruit_li_2_foot clearfix">
- <span class="cruit_li_2_foot_tag cruit_li_2_foot_exper">
- {{ jobInfo.hy_name }}
- >
- {{ jobInfo.zw_name }}
- </span>
- <span class="cruit_li_2_foot_tag cruit_li_2_foot_addres">{{ jobInfo.city_name }}</span>
- </div>
- </div>
- </section>
- </main>
- </main>
- <main class="index_main">
- <section class="index_2 clearfix">
- <div class="demand_1 clearfix">
- <div class="demand_left_1 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">基本要求</a>
- </div>
- </div>
- <div class="demand_ul_2">
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">工作性质:</div>
- <div class="demand_li_2_text clearfix">{{ jobInfo.job_nature_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">工作经验:</div>
- <div class="demand_li_2_text clearfix">{{ jobInfo.experience_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">学历文凭:</div>
- <div class="demand_li_2_text clearfix">{{ jobInfo.education_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">语言选择:</div>
- <div class="demand_li_2_text clearfix">{{ jobInfo.language_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">薪资待遇:</div>
- <div class="demand_li_2_text clearfix">{{ jobInfo.salary_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">截止日期:</div>
- <div class="demand_li_2_text clearfix">
- {{ getTime(jobInfo.created_at, 'year', 1) }}
- </div>
- </div>
- </div>
- </div>
- <div class="demand_left_2 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">岗位职责</a>
- </div>
- </div>
- <article class="demand_article_1">
- {{ jobInfo.description }}
- </article>
- </div>
- <div class="demand_left_3 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">具体要求</a>
- </div>
- </div>
- <article class="demand_article_1">
- {{ jobInfo.jt_description }}
- </article>
- </div>
- <div class="demand_left_4 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">联系方式</a>
- </div>
- </div>
- <div class="demand_ul_2">
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">地址:</div>
- <div class="demand_li_2_text clearfix">{{ companyInfo.address_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">邮箱:</div>
- <div class="demand_li_2_text clearfix">{{ companyInfo.email }}</div>
- </div>
- </div>
- </div>
- <div class="demand_left_5 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">公司介绍</a>
- </div>
- </div>
- <div class="demand_ul_2">
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">公司规模:</div>
- <div class="demand_li_2_text clearfix">{{ companyInfo.company_size_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">公司性质:</div>
- <div class="demand_li_2_text clearfix">{{ companyInfo.company_nature_name }}</div>
- </div>
- <div class="demand_li_2 clearfix">
- <div class="demand_li_2_label">公司行业:</div>
- <div class="demand_li_2_text clearfix">{{ companyInfo.hy_name }}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="demand_2 clearfix">
- <div class="demand_right_1 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">招聘单位</a>
- </div>
- </div>
- <div class="demand_ul_1">
- <span class="demand_ul_1_span dot1">
- {{ companyInfo.business_name }}
- </span>
- </div>
- </div>
- <div class="demand_right_2 clearfix">
- <div class="cruit_head_box clearfix">
- <div class="cruit_head_left">
- <a class="cruit_head_a cruit_head_only" title="">其他职位</a>
- </div>
- </div>
- <div class="demand_ul_1">
- <NuxtLink class="demand_ul_1_a dot1" :href="`/${item.pinyin}/${item.id}.html`" title=""
- v-for="(item, index) in other_job" :key="item.id">
- {{ item.title }}
- </NuxtLink>
- </div>
- </div>
- </div>
- </section>
- </main>
- </div> -->
- <HomeAdvertising :imgurl="adImg2" v-if="adImg2"></HomeAdvertising>
- <HomeFoot1></HomeFoot1>
- <div class="phone_foot pc_none"></div>
- </div>
- </template>
- <script setup>
- import { ref } from 'vue'
- import { ElBreadcrumb, ElBreadcrumbItem, ElMessage } from 'element-plus'
- import { ArrowRight } from '@element-plus/icons-vue'
- const route = useRoute();
- const type = ref(2);
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- //获取用户信息
- let type_id = ref('')
- let website_id = ref('')
- let getUserInfo = () => {
- axios.get("/user/getUserInfo").then(response => {
- console.log("gettypeid", response.data);
- type_id.value = response.data.type_id
- website_id.value = response.data.website_id
- })
- companyJOb()
- }
- onMounted(() => {
- getUserInfo()
- })
- //获取当前企业会员的职位
- const companyJobList = ref([])
- let companyJOb = () => {
- axios.post("/web/getWebsiteJobRecruiting", {
- 'pageSize': 10,
- 'website_id': 30,
- // 'website_id': website_id.value,
- }).then(response => {
- console.log("gettypeid_获取到的企业会员的职位:", response.data);
- companyJobList.value = response.data
- })
- }
- const resumeBool = ref(false)
- const job_search = ref('')
- const company_job = ref('')
- const allResume = ref(false)
- // 3 沟通简历
- const getContactMe = async () => {
- resumeBool.value = true
- }
- let getresume = () => {
- axios.post('/web/getWebsiteJobResume', {
- website_id: website_id.value,
- recruit_id: company_job.value,
- hunt_id: articleIdArr,
- }).then(res => {
- if (res.code == 200) {
- ElMessage({
- message: '投递成功',
- type: 'sussess',
- });
- resumeBool.value = false;
- } else {
- ElMessage({
- message: res.message,
- type: 'error',
- });
- resumeBool.value = false;
- }
- company_job.value = '';
- job_search.value = 2;
- allResume.value = false;
- })
- }
- //1.1 获得跳转过来的id
- const articleId = parseInt(route.params.id); //获得该页面的id
- let articleIdArr = Array.of(articleId);
- // console.log('111222111', articleId);
- //1.2 获得父级栏目的名称、id
- //获得当前的完整路径
- const fullPath = route.path;
- //拆分,取出来中间这一段,然后提取数字部分
- const segments = fullPath.split('/');
- const targetSegment = segments[1];
- const targetRoute = segments[2];
- console.log("targetSegment1", targetSegment);
- console.log("targetSegment2", targetRoute);
- // if (targetSegment == 'zhaogongzhaopinnongmingong') {
- // type.value = 1;
- // } else if (targetSegment == 'nongmingongqiuzhi') {
- // type.value = 2;
- // } else {
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // }
- // const numberPart = targetSegment.match(/\d+$/)?.[0];
- // const routeId = numberPart;
- let routeId;
- //通过导航路径反向查询导航id
- const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment,
- },
- });
- if (getRouteId.code == 200) {
- routeId = getRouteId.data.category_id
- } else {
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:通过url路径查询导航池id")
- // console.log("后端错误反馈:", getRouteId.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //1.3 面包屑导航
- const parent_name = ref("");
- const parent_id = ref("");
- const parent_pinyin = ref("");
- let getParentNav = async () => {
- const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
- method: 'GET',
- query: {
- 'catid': routeId
- },
- });
- if (listData.code == 200) {
- parent_name.value = listData.data.alias;
- parent_id.value = listData.data.parent_id;
- parent_pinyin.value = listData.data.aLIas_pinyin;
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:获取面包屑导航")
- console.log("后端错误反馈:", listData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- //获得父级栏目详情
- getParentNav();
- //1.4 展示广告
- let adImg1 = ref({})
- let adImg2 = ref({})
- onMounted(async () => {
- //从客户端获取行政职能部门 加快打开速度
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- //广告2
- let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0002`
- const responseAd2 = await fetch(url2, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd2 = await responseAd2.json();
- adImg2.value = resultAd2.data[0];
- })
- // 2 获取详情
- let jobInfo = ref([]) //基本信息
- let companyInfo = ref([])// 公司介绍
- let category = ref([]) // 栏目
- let other_job = ref([]) // 岗位
- let experienceInfo = ref([]) // 工作经历
- let education = ref([]) // 教育背景
- let skillList = ref([]) // 专业技能
- let resume = ref(0)
- const getDetail = async () => {
- const listData = await requestDataPromise('/web/getWebsiteJobInfo', {
- method: 'GET',
- query: {
- 'id': articleId,
- 'type': type.value,
- 'pageSize': 10,
- },
- });
- if (listData.code == 200) {
- console.log("详情11112222", listData.data);
- // console.log("详情1111222", listData.data.job[0].job_experience);
- // console.log("详情111122233", JSON.parse(listData.data.job[0].job_experience));
- // console.log("详情1111222233344", JSON.parse(listData.data.job[0].education_experience));
- // jobInfo.value = listData.data.job[0];
- // category.value = listData.data.category;
- if (type.value == 1) {
- jobInfo.value = listData.data.job[0];
- category.value = listData.data.category;
- companyInfo.value = listData.data.company[0];
- other_job.value = listData.data.other_job;
- }
- if (type.value == 2) {
- jobInfo.value = listData.data.job[0];
- category.value = listData.data.category;
- experienceInfo.value = listData.data.job_experience;
- education.value = listData.data.education_experience;
- skillList.value = JSON.parse(listData.data.job[0].skillList);
- resume.value = listData.data.resume;
- }
- }
- }
- getDetail();
- //获取行业 职位 具体职位
- const industry_categoryList = ref([]) //行业类别列表
- const position_categoryList = ref([]) //职位类别列表
- const positionList = ref([]) //具体职位列表
- const getData = async () => {
- const getData = await requestDataPromise('/web/getWebsiteJobSelect', {
- method: 'GET',
- query: {},
- });
- if (getData.code == 200) {
- // console.log("获取到的分类数据:", getData.data);
- industry_categoryList.value = getData.data.hy; //行业
- position_categoryList.value = getData.data.zw; //职位
- positionList.value = getData.data.jtzw; //具体职位
- }
- }
- getData()
- //4.设置seo信息 start---------------------------------------->
- //4.1 设置seo信息
- let seoTitle;
- let seoDescription;
- let seoKeywords;
- const listData = await requestDataPromise('/web/getWebsiteJobInfo', {
- method: 'GET',
- query: {
- 'id': articleId,
- 'type': type.value,
- 'pageSize': 10,
- },
- });
- if (listData.code == 200) {
- seoTitle = listData.data.job[0].name;
- seoDescription = listData.data.job[0].self_evaluation;
- seoKeywords = JSON.parse(listData.data.job[0].skillList)[0].skill;
- if (JSON.parse(listData.data.job[0].skillList).length > 1) {
- for (let i = 1; i < JSON.parse(listData.data.job[0].skillList).length; i++) {
- seoKeywords += "," + JSON.parse(listData.data.job[0].skillList)[i].skill;
- }
- }
- }
- const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
- method: 'GET',
- query: {
- 'catid': routeId,
- },
- });
- if (setData.code == 200) {
- let seoSuffix = setData.data.suffix;
- let seoName = setData.data.website_name;
- useSeoMeta({
- title: seoTitle + "_" + seoName + "_" + seoSuffix,
- meta: [
- { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
- { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
- { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
- ]
- });
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:设置列表页面SEO数据")
- console.log("后端错误反馈:", setData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //4.设置seo信息 end---------------------------------------->
- </script>
- <style scoped lang="less">
- @import "@/assets/css/zgzpjianli.less";
- @import "@/assets/css/zgzpzhaopin.less";
- @import "@/assets/css/zgzpsearch.less";
- .contact_me {
- width: 1200px;
- margin: 30px auto;
- height: 70px;
- .contact_me_btn {
- width: 127px;
- height: 45px;
- line-height: 45px;
- background-color: #489d97;
- color: #fff;
- border-radius: 4px;
- font-size: 16px;
- border: none;
- cursor: pointer;
- .contact_me_btn_img {
- display: inline-block;
- width: 18px;
- height: 18px;
- background-image: url('@/public/images/comments.png');
- vertical-align: -4px;
- margin-left: 20px;
- }
- }
- .contact_me_btn_2 {
- background-color: #ccc;
- cursor: default;
- }
- }
- </style>
- <style lang="less" scoped>
-
- @media screen and (min-width:801px){/*pc*/
- .seek_in_head_text:nth-last-of-type(1){margin-right:0px; }
-
- .pc_none{display:none;}
- }
- @media screen and (max-width:800px){/*ipad_phone*/
- .breadcrumb_box {
- height: 22px;
- width: 92%;
- margin: 10px auto;
- word-break: keep-all;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 92%;
- font-size: 14px;
- color: #666;
- * {
- font-size: 14px;
- display: inline;
- color: #666;
- line-height: 22px;
- height: 22px;
- margin-right: 5px;
- }
- }
-
- .gerenjianli { width:92%;margin:0px auto 0px;min-height:auto; }
- .index_1{width:100%;border-bottom:solid 8px #f5f5f5;padding-bottom:13px;}
- .index_5 .seek_in{margin-top:12px;}
- .index_6 .seek_in{margin-top:0px;}
-
- .phone_box_1_head_time{
- float: right;
- height: 40px;
- line-height: 40px;
- font-size: 12px;
- color: #999;
- }
- .phone_box_1{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
- .index_1_left{ width:70%;float:left;}
- .index_1_right{ width:27%;float:right;margin-top:12px;
- height:90px; }
- .index_1_right_img{ width:100%; height:100%; margin-top:0px;}
- .seek_introduce_h4{font-size: 16px; margin-right:8px;}
- .seek_introduce_left{width:100%;float:none; }
- .seek_introduce_tag{margin:5px 0px 0px 0px; font-size:12px;padding:0px 5px 0px 22px;
- background-position-x:4px;
- }
- .seek_introduce_title_box{margin-top:11px;}
- .seek_introduce_title_box span{font-size: 12px;float:left;}
- .seek_introduce_title_box .seek_introduce_title{margin-right:0px;}
- .seek_introduce_title_box .seek_introduce_label{margin-right:0px;}
- .seek_introduce_box{margin-top:12px;}
- .seek_introduce_foot{float:left;width:100%;}
- .phone_introduce_title_hr{float:left;width:100%; }
- .seek_introduce_foot{ margin-top:11px; font-size: 12px;line-height:16px;
- word-wrap: break-word;
- overflow-wrap: break-word;
- white-space: pre-wrap;
- word-break: break-all;
- color:#999;
-
- }
- .seek_introduce_foot_text{float:none;display:inline-block;height:12px;
- margin:0px 8px 0px;padding:0px;box-sizing:border-box;
- background:#999;border:0px;border-top:solid 4px #fff;
- width:1px;
- }
- .seek_introduce_foot_text:nth-last-of-type(1) {
- display:none;
- }
-
- // .seek_introduce_foot{ margin-top:11px; font-size: 12px;line-height:16px; }
- // .seek_introduce_foot_text{font-size: 12px;height:12px;line-height:12px;margin-bottom:5px;}
- .jianli{width:92%;margin:0px auto 0px;}
- .index_4{margin-top:11px;}
- .index_5{margin-top:11px;}
- .index_6{margin-top:11px;}
-
-
- .seek_article{
- margin-top: 12px!important;
- }
- .seek_article *,.seek_article{
- font-size: 14px!important;
- line-height: 26px!important;
- }
-
- .seek_in_head_text{ width:100%; font-size:12px;color:#666;
- height:auto;line-height:24px;margin-bottom:4px;margin-right:0px;}
- .seek_in_head_text:nth-of-type(1){font-weight:bold;font-size:14px;color:#333;width:100%; }
-
- // .seek_in_head_text:nth-of-type(3){float:left!important;width:auto;background:red;margin-right:6px;}
- // .seek_in_head_text:nth-of-type(4){float:left!important;width:auto;background:teal;}
- .seek_in_li{line-height:24px;height:auto;margin-bottom:4px;display:block;}
- .seek_in_label{line-height:24px;height:24px;font-size:12px;color:#666;}
- .seek_in_li_text{line-height:24px; height:auto;font-size:12px; word-wrap: break-word;
- width:100%;
- overflow-wrap: break-word;
- white-space: pre-wrap;
- word-break: break-all;
- color:#666;
- }
- .seek_in_head{margin:12px 0px 0px;}
- .phone_name_1{color:#666;}
-
- .phone_seek_in_head{
- .seek_in_head_text:nth-of-type(2),
- .seek_in_head_text:nth-of-type(3),
- .seek_in_head_text:nth-of-type(4){
- width:auto;float:left!important;
- }
- .seek_in_head_text:nth-of-type(3){margin:0px 22px;}
- }
- .seek_article_2{
- margin-top: 12px!important;
- }
- .seek_article_2 *,.seek_article_2{
- font-size: 14px!important;
- line-height: 26px!important;
- }
- .contact_me{
- background: #fff;
- position: fixed;
- left: 0px;
- bottom: 0px;
- text-align: center;
- height: 55px;
- width: 100%;
- z-index: 1122;margin:0;
- div{
- display:inline-block;margin-top:11px;
- height:33px!important;line-height:33px!important;
-
- }
-
-
- }
- .contact_me_btn_img{margin-left:0px!important;}
- .phone_foot{height:55px; }
-
-
- .phone_box_2{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
-
- .phone_box_3{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
-
- .phone_box_4{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
-
- .phone_box_5{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
-
- .phone_box_6{
- margin: 0px auto 0px;
- .phone_box_1_head {
- height: 40px;
- line-height: 40px;
- background: #fff;
- border-bottom: 1px solid #E6E6E6;
- width: 100%;
- a {
- float: left;
- height: 40px;
- line-height: 40px;
- margin: 0;
- position: relative;
- color: #489d97;
- font-size: 16px;
- font-weight: bold;
- box-sizing: border-box;
- position: relative;
- padding-left: 8px;
- }
- a::before {
- content: '';
- display: block;
- position: absolute;
- left: 0px;
- top: 12px;
- background: linear-gradient(to top, #0998A9, #6ADDD6);
- width: 3px;
- height: 15px;
- }
- }
- }
-
- .phone_none{display:none;}
- }
- </style>
|